Skip to content

fix(deps): update module github.com/sourcehawk/go-crd-condition-metrics to v1.2.0 - #259

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-sourcehawk-go-crd-condition-metrics-1.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-sourcehawk-go-crd-condition-metrics-1.x

Conversation

@renovate

@renovate renovate Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/sourcehawk/go-crd-condition-metrics v1.1.0 → v1.2.0 age confidence

Release Notes

sourcehawk/go-crd-condition-metrics (github.com/sourcehawk/go-crd-condition-metrics)

v1.2.0

Compare Source

Overview

This release adds Prometheus alert rules for the condition metric, a method that removes the metric of one condition type, and a corrected README example that no longer leaves stale metrics after a resource is deleted. It also updates the Prometheus client and the other dependencies. The module now needs Go 1.26 or later.

What's new

  • Alert rules for CRD conditions. Before, this repository had a dashboard for the condition metric but no alert rules, so each operator wrote its alerts from nothing. make alerts METRIC_NAMESPACE=<your_operator> now generates a PrometheusRule with three rules (#​7):

    • CustomResourceNotReady: the Ready condition is False for 30 minutes.
    • CustomResourceConditionUnknown: a condition is Unknown for 30 minutes.
    • CustomResourceConditionStuck: Ready has not been True for more than 6 hours since its last transition. A gap in the series does not reset this time.

    The rules are starting points with severity: warning and no routing labels. NAMESPACE_LABEL sets the label that holds the namespace of the resource (default exported_namespace). The alerts/README.md file tells you what to tune.

  • Remove the metric of one condition type. Before, when a controller removed a condition type from the status, its series stayed until the whole resource was removed. RemoveConditionFor(kind, obj, conditionType) removes the series of that one condition type and keeps the others. Call it when you remove the condition from the status, for example with meta.RemoveStatusCondition. (#​10)

Fixes

  • Deleted resources no longer leave stale series when you follow the README. The README example removed the metrics when the resource had a deletion timestamp. Without a finalizer, a controller usually never sees that timestamp. With a finalizer, a later reconcile recorded the conditions again. The example now removes the metrics when the Get returns NotFound. If you copied the old example, move your RemoveConditionsFor call to the NotFound path. (#​10)
  • The README example records only stored conditions. Before, a failed status update left a metric for a condition that was never stored. The example now records right after the Get, and again after a status update succeeds. (#​10)

What's changed

  • Go 1.26 or later is now necessary. client_golang v1.25.0 and common v0.74.0 need Go 1.26, so the go directive in go.mod changes from 1.25 to 1.26.0. If your module is on Go 1.25, move to Go 1.26 before you upgrade. Go 1.25 no longer gets security fixes. (#​8)
  • Latest dependencies. client_golang v1.23.2 → v1.25.0, common v0.67.5 → v0.74.0, testify v1.11.1 → v1.12.1, and go-prometheus-gaugevecset v1.1.0 → v1.2.0, with their indirect dependencies. Your module gets these versions when it upgrades to this release. (#​5, #​8, #​10)
Changelog
  • Update dependency golang to v1.25.6 (#​3)
  • Update dependency golangci-lint to v2.8.0 (#​4)
  • Update module github.com/prometheus/common to v0.67.5 (#​5)
  • Update actions/checkout action to v6 (#​6)
  • feat(alerts): add generic CRD condition alerts, generated by make alerts (#​7)
  • chore(deps): update all dependencies and let Renovate track every pin (#​8)
  • ci: stop installing Go twice in CI (#​9)
  • docs(readme): stop the example from leaving stale metrics (#​10)

Full Changelog: sourcehawk/go-crd-condition-metrics@v1.1.0...v1.2.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • On day 1 and 15 of the month (* * 1,15 * *)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate

renovate Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 12 additional dependencies were updated

Details:

Package Change
github.com/prometheus/common v0.72.0 -> v0.74.0
github.com/prometheus/procfs v0.22.0 -> v0.23.0
github.com/sourcehawk/go-prometheus-gaugevecset v1.1.0 -> v1.2.0
go.yaml.in/yaml/v2 v2.4.4 -> v2.4.5
go.yaml.in/yaml/v3 v3.0.5 -> v3.0.6
golang.org/x/net v0.59.0 -> v0.62.0
golang.org/x/oauth2 v0.37.0 -> v0.38.0
golang.org/x/sync v0.23.0 -> v0.24.0
golang.org/x/sys v0.48.0 -> v0.50.0
golang.org/x/term v0.46.0 -> v0.47.0
golang.org/x/text v0.42.0 -> v0.43.0
golang.org/x/tools v0.49.0 -> v0.51.0

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants